package com.talos.ums.controller.admin.warehouseuser.vo;

import com.talos.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.talos.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 用户仓库关系表分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class UmsWarehouseUserPageReqVO extends PageParam {

    @Schema(description = "用户id", example = "7883")
    private Long userId;

    @Schema(description = "仓库id bdms_base_warehourse.id", example = "12446")
    private Long warehouseId;

    @Schema(description = "仓库编码")
    private String warehouseCode;

    @Schema(description = "用户编码")
    private String userCode;

    @Schema(description = "仓库权限管理员: 0-否, 1-是")
    private Integer adminPermission;

    @Schema(description = "是否有效：0-无效，1-有效")
    private Integer activeFlag;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "创建人主键", example = "13455")
    private Long creatorId;

    @Schema(description = "创建人工号")
    private String creatorCode;

    @Schema(description = "创建人姓名", example = "张三")
    private String creatorName;

    @Schema(description = "更新人主键", example = "16270")
    private Long modifierId;

    @Schema(description = "修改时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] modifyTime;

    @Schema(description = "修改人工号")
    private String modifierCode;

    @Schema(description = "修改人姓名", example = "张三")
    private String modifierName;

    @Schema(description = "租户id", example = "25541")
    private Long tenantId;

}
